package com.gitee.feizns.webtemplate.commons.annotation.permisson;

import com.gitee.feizns.premission.menu.annotation.MenuVerificationProp;
import com.gitee.feizns.webtemplate.entity.enums.PermissionMenu;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 标识所属的权限菜单
 * @see com.gitee.feizns.premission.menu.Menu
 * @see com.gitee.feizns.premission.menu.intercetor.MenuEnumVerificationInterceptor
 * @author feizns
 * @since 2019/5/10
 */
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@MenuVerificationProp
public @interface PermissionVerify {

    /**
     * 所属的权限菜单
     * @return
     */
    PermissionMenu value();

}
